import request from '@/utils/request'

// 查询常见质量通病目录详情列表
export function listKnowledgeDetail(query) {
  return request({
    url: '/knowledge/knowledgeDetail/list',
    method: 'get',
    params: query
  })
}

// 查询常见质量通病目录详情详细
export function getKnowledgeDetail(catalogueDetailId) {
  return request({
    url: '/knowledge/knowledgeDetail/' + catalogueDetailId,
    method: 'get'
  })
}

// 新增常见质量通病目录详情
export function addKnowledgeDetail(data) {
  return request({
    url: '/knowledge/knowledgeDetail',
    method: 'post',
    data: data
  })
}

// 修改常见质量通病目录详情
export function updateKnowledgeDetail(data) {
  return request({
    url: '/knowledge/knowledgeDetail',
    method: 'put',
    data: data
  })
}

// 删除常见质量通病目录详情
export function delKnowledgeDetail(catalogueDetailId) {
  return request({
    url: '/knowledge/knowledgeDetail/' + catalogueDetailId,
    method: 'delete'
  })
}
